cmake_minimum_required(VERSION 3.19)
project(console)

#/machine:X86
message(${CMAKE_EXE_LINKER_FLAGS})

#如果您只是直接执行add_executable()命令，则会将/SUBSYSTEM:CONSOLE /ENTRY:"mainCRTStartup"传递给链接器。
add_executable(console ${SOURCE_FILES} src/entry.cpp ../pyExt/src/Extend.cpp ../pyExt/src/Extend.h)

target_link_libraries( console
        repLib.lib )

target_include_directories(console PUBLIC
        "${CMAKE_CURRENT_SOURCE_DIR}/../repLib/src"
        )

